<!DOCTYPE html>
<html>
<head>
  <title></title>
  <script type="text/javascript" src="http://localhost:8080/vantop-sba-web/js/jquery-1.8.0.min.js"></script>
  <script type="text/javascript">
  	/* $(function(){
  		window.location.href = "http://localhost:8080/vantop-sba-web/apk/down.do";
  	}); */
  	var download = function(){
  		window.location.href = "http://localhost:8080/vantop-sba-web/apk/down.do";
  	}
  	var createQRCode = function(){
  		$.ajax({
  			type: "get",
  			url: "http://localhost:8080/vantop-sba-web/apk/createQRCode.do",
  			dataType: "text",
  			success: function(data){
  				alert("success");
  			},
  			error: function(data){
  				alert("error");
  			}
  		});
  	}
  	
  	/* $.ajax({
		type: "get",
		url: "/clap-appweb/console/loginaction/tenantRegister.do?v="+Math.random(),
		data: $("#tenantRegisterForm").serialize(),
		dataType: "text",
		contentType: "application/x-www-form-urlencoded; charset=utf-8", 
		success: function(data){
			var json=eval("("+data+")");
			if(!json.success){
				$("#error_msg").html(json.message);
			}else{
				$("#error_msg").html("已经注册完成，请到邮箱激活！");
			}
		},error:function(data){
			messageDlg("注意",data);
		}
	}); */
  </script>
</head>

<body>
	 欢迎页！
	 <a href="javascript:createQRCode();">生成二维码</a>
	 <a href="javascript:download();">下载app</a>
</body>
</html>
